const setOpenKeys=(state=[],action)=>{
  switch (action.type) {
      case 'SET_OPEN_KEYS':
          return action.openKeys;
      default:
          return state
  }
};
const setSelectedKey=(state='',action)=>{
    switch (action.type) {
        case 'SET_SELECTED_KEY':
            return action.selectedKey;
        default:
            return state
    }
};
export {setOpenKeys,setSelectedKey};
